package com.tuo51.evaluate.vo.evaluate;

import com.tuo51.evaluate.domain.evaluatingV2.EvaluateV2Dimension;
import com.tuo51.evaluate.domain.evaluatingV2.EvaluateV2Item;
import lombok.Data;


@Data
public class EvaluateV2ExtInfoVO {

    private String dimensionName;

    private String dimensionId;

    private Integer month = 0;

    private String developmentStatus;

    private String bringUp;

    private String parentManual;

    private String observation;

    private String guide;

    private String recommendTips;

    private String recommendURL;

    public static EvaluateV2ExtInfoVO of(EvaluateV2Item item, EvaluateV2Dimension dimension){
        EvaluateV2ExtInfoVO vo = new EvaluateV2ExtInfoVO();

        vo.setDimensionId(dimension.getId());
        vo.setDimensionName(item.getDimensionName());
        vo.setMonth(item.getMonth());
        vo.setDevelopmentStatus(item.getDevelopmentStatus());
        vo.setBringUp(item.getBringUp());
        vo.setParentManual(item.getParentManual());

        vo.setObservation(item.getObservation());
        vo.setGuide(item.getGuide());

        if (dimension != null)
            vo.setRecommendTips(dimension.getRecommendTips());

        return vo;
    }
}
